///////////////////////////////////////////////////////////////////////////////
//
// Copyright
//
///////////////////////////////////////////////////////////////////////////////

package ru.goodcore.css.datastructure
{
	import flash.utils.getClassName;

/**
 * Implements linked list structute
 * 
 * @author					Dimarik
 * @version					1.0
 * @playerversion			Flash 9
 * @langversion				3.0
 * 
 * @see						http://en.wikipedia.org/wiki/Linked_list
 *
 */
public class LinkedListNode
{

	//-------------------------------------------------------------------------
	//
	//  Constructor
	//
	//-------------------------------------------------------------------------

	/**
	 * Constructor
	 */
	public function LinkedListNode() {
		super();
	}

	//-------------------------------------------------------------------------
	//
	//  Properties
	//
	//-------------------------------------------------------------------------

	/**
	 * @private
	 */
	internal var $next:	LinkedListNode;

	public function get next():LinkedListNode {
		return this.$next;
	}

	/**
	 * @private
	 */
	internal var $prev:	LinkedListNode;

	public function get prev():LinkedListNode {
		return this.$prev;
	}

	//-------------------------------------------------------------------------
	//
	//  Methods
	//
	//-------------------------------------------------------------------------

	/**
	 * @private
	 */
	public function toString():String {
		return getClassName(this);
	}

}
}